
<template>
  <div class="bg" >
    <div class="box">
      <div class="box_top">
        <img src="../assets/imgs/logo.png" height="70" width="350"/><br/>
        <div class="firstfont">天津滨海机场航班管理系统</div>
        <div class="secondfont">Tianjin Binhai Airport Flight Management System</div>
        <el-divider border-style="double" />
      </div>
      <div class="box_bottom">
        <div class="button">
          <el-form>
            <el-button type="primary" @click="loginBtn"
                       style="width: 300px;
                    height: 50px;
                    font-size: 20px;
                    letter-spacing: 15px;
                    border-radius: 20px;
                    font-weight: bold;" >登录</el-button><br>
            <el-button type="primary" @click="regisBtn"
                       style="width: 300px;
                    height: 50px;
                    font-size: 20px;
                    letter-spacing: 15px;
                    margin-top: 10px;
                    border-radius: 20px;
                    font-weight: bold;">注册</el-button><br>
          </el-form>
        </div>
      </div>
    </div>
  </div>

</template>

<script setup>
import { useRouter } from "vue-router";
const router = useRouter() ;
const regisBtn=()=>{
  router.push('/Register')
}
const loginBtn=()=>{
  router.push('/Login2')
}

</script>

<style scoped>
.bg{
  width: 100%;
  height: 100%;
  background-image: url("../assets/imgs/tjairlines1.jpg");
  background-size: cover; /* 使图片平铺满整个浏览器（从宽和高的最大需求方面来满足，会使某些部分无法显示在区域中） */
  position: absolute; /* 不可缺少 */
  z-index: -1;
  background-repeat: no-repeat;
}
.box{
  margin-top: 100px;
  margin-left: 25%;
  width: 800px;
  height: 500px;
  border-radius: 20px;
  color: black;
  background: rgba(222,222,221,0.75);
}
.box_top{
  padding-top: 70px;
}
.box_bottom{
  padding-top:20px;
}
.firstfont{
  padding-top: 20px;
  font-size: 30px;
  letter-spacing: 8px;
  font-weight: bold;
  opacity: 1;
}
.secondfont{
  padding-top: 10px;
}

</style>